/*
	@author Gavrilyak Myroslav (kl65us)
	@description CHNU, Lab work 5
*/

$(document).ready(function() {
	$("#left-arrow").bind(
		{
			mouseenter: function(e) {
				$("img", this).attr("src", "images/menu/slider-arrow-left-active.png");	
		},
			mouseleave: function(e) {
				$("img", this).attr("src", "images/menu/slider-arrow-left-no-active.png");	
		}
	});

	$("#right-arrow").bind(
		{
			mouseenter: function(e) {
				$("img", this).attr("src", "images/menu/slider-arrow-right-active.png");	
		},
			mouseleave: function(e) {
				$("img", this).attr("src", "images/menu/slider-arrow-right-no-active.png");	
		}
	});

	$("#left-arrow, #right-arrow").bind("click", function(e) {
		$("#slider-content, #slider-right-img").fadeOut(500);
		$("#slider-content, #slider-right-img").fadeIn(400);
	});

});